/*
 * game.h
 *
 * created on may 14, 2010
 *		Author: apetit
 */

#ifndef GAME_H_
#define GAME_H_

void server(int tty1, int tty2, int a, int b);	// server that recieves to fifos id to send and recieve information from client

void client(int tty1, int tty2, int a, int b);	// client that recieves to fifos id to send and recieve information from server



void printTablero(int tablero[]) ;
int morethan3moves(int tablero[], int player) ;

int validmove(int from, int to) ;
/*
 * Retorna 1 si puso la ficha,
 * 0 si no se pudo poner
 */
int ponerFicha(int player, int move, int board[]) ;
/*
 * 1 si la movio
 * 0 si no
 */
int moverFicha(int player, int from, int to, int board[]);
int getOperation1();
void getOperation2(int operations[2]);

#endif /*GAME_H_*/
